﻿<Page x:Class="SsTool.Workflow.WorkflowMetadataListPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300"
	Title="WorkflowMetadataListPage">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" HorizontalAlignment="Left" Orientation="Horizontal">
            <Button Name="_ctlBtnCreate" Click="_ctlBtnCreate_Click" Margin="5,5,0,5">
                <StackPanel Orientation="Horizontal" Margin="1">
                    <Image Source="../Resources/workflow.png" Margin="0,0,3,0"/>
                    <TextBlock Text="创建工作流"/>
                </StackPanel>
            </Button>
            <Button Name="_ctlBtnUpdate" Click="_ctlBtnUpdate_Click" Margin="5,5,0,5">
                <StackPanel Orientation="Horizontal" Margin="1">
                    <Image Source="../Resources/setting.png" Margin="0,0,3,0"/>
                    <TextBlock Text="修改工作流"/>
                </StackPanel>
            </Button>
        </StackPanel>
        <Border Grid.Row="1" BorderThickness="1" BorderBrush="Black" Margin="5,0,5,5">
            <DataGrid Name="_ctlGridWorkflow" BorderThickness="0"  BorderBrush="Black" CanUserAddRows="False" AutoGenerateColumns="False">
                <DataGrid.Columns>
                    <DataGridTextColumn Header="名称"  Binding="{Binding Caption}" Width="*"/>
                </DataGrid.Columns>
            </DataGrid>
        </Border>
    </Grid>
</Page>
